import fetch from 'utils/fetch';
/**
 * 会员管理
 */
//查看收费设置
export function getchargeSetting() {
    return fetch({
        url: '/vip/getchargeSetting',
        method: 'post',
    });
  }
//修改收费设置
export function updatePriceSetting(chargeId,activityId,chargeDetail,activityName,activityDiscount,startTime,endTime,dividedPercentage,serviceDiscount,wrongCount,extractCount,studyCount) {
    const data = {
        chargeId,
        activityId,
        chargeDetail,
        activityName,
        activityDiscount,
        startTime,
        endTime,
        dividedPercentage,
        serviceDiscount,
        wrongCount,
        extractCount,
        studyCount
    };
    return fetch({
        url: '/vip/updatePriceSetting',
        method: 'post',
        data
    });
  }
//激活码审核分页
export function pageActivationCode(page,rows,provinceId,cityId,areaId,schoolId,agentName,agentOwner,status) {
    const data = {
        page,
        rows,
        provinceId,
        cityId,
        areaId,
        schoolId,
        agentName,
        agentOwner,
        status
    };
    return fetch({
        url: '/vip/pageActivationCode',
        method: 'post',
        data
    });
  }
//激活码审核
export function checkActivationCode(codeId,status,reason) {
    const data = {
        codeId,
        status,
        reason
    };
    return fetch({
        url: '/vip/checkActivationCode',
        method: 'post',
        data
    });
  }

//驳回原因
export function getRejectReason(codeId) {
    const data = {
        codeId
    };
    return fetch({
        url: '/vip/getRejectReason',
        method: 'post',
        data
    });
  }
  //激活码订单号统计
export function getOrderByCodeId(codeId) {
    const data = {
        codeId
    };
    return fetch({
        url: '/vip/getOrderByCodeId',
        method: 'post',
        data
    });
  }
    //分页查询会员订单列表
export function pageVipMemberShipPayDetail(page,rows,provinceId,cityId,areaId,userName,fSchoolId,sPayUserPhone,date,dateType,sIsUsePoint) {
    const data = {
        page,
        rows,
        provinceId,
        cityId,
        areaId,
        userName,
        fSchoolId,
        sPayUserPhone,
        date,
        dateType,
        sIsUsePoint
    };
    return fetch({
        url: '/memberShipPayDetail/pageVipMemberShipPayDetail',
        method: 'post',
        data
    });
  }
  //统计会员订单
  export function countVipMemberShipPayDetail(provinceId,cityId,areaId,userName,fSchoolId,sPayUserPhone,date,dateType,sIsUsePoint) {
    const data = {
        provinceId,
        cityId,
        areaId,
        userName,
        fSchoolId,
        sPayUserPhone,
        date,
        dateType,
        sIsUsePoint
    };
    return fetch({
        url: '/memberShipPayDetail/countVipMemberShipPayDetail',
        method: 'post',
        data
    });
  }
//导出会员订单
  export function exportVipMemberShipPayDetail(token,provinceId,cityId,areaId,userName,fSchoolId,sPayUserPhone,date) {
    const data = {
        token,
        provinceId,
        cityId,
        areaId,
        userName,
        fSchoolId,
        sPayUserPhone,
        date
    };
    return fetch({
        url: '/memberShipPayDetail/exportVipMemberShipPayDetail',
        method: 'post',
        data
    });
  }
  //分页查询礼包订单列表
  export function pagePackageMemberShipPayDetail(page,rows,provinceId,cityId,areaId,userName,fSchoolId,sPayUserPhone,date,dateType) {
    const data = {
        page,
        rows,
        provinceId,
        cityId,
        areaId,
        userName,
        fSchoolId,
        sPayUserPhone,
        date,
        dateType
    };
    return fetch({
        url: '/memberShipPayDetail/pagePackageMemberShipPayDetail',
        method: 'post',
        data
    });
  }
//统计礼包订单
export function countPackageMemberShipPayDetail(provinceId,cityId,areaId,userName,fSchoolId,sPayUserPhone,date,dateType) {
    const data = {
        provinceId,
        cityId,
        areaId,
        userName,
        fSchoolId,
        sPayUserPhone,
        date,
        dateType
    };
    return fetch({
        url: '/memberShipPayDetail/countPackageMemberShipPayDetail',
        method: 'post',
        data
    });
  }

  //激活码订单号统计
export function pageActivationDetail(page,rows,activationStatus,activationCode,issuedPhone,activationPhone,codeId) {
    const data = {
        page,
        rows,
        activationStatus,
        activationCode,
        issuedPhone,
        activationPhone,
        codeId
    };
    return fetch({
        url: '/vip/pageActivationDetail',
        method: 'post',
        data
    });
  }
  //分页查询会员打包订单明细
export function pageMemberShipPackPayDetail(page,rows,provinceId,areaId,cityId,schoolId,orgUserName,payUserPhone,dateType,date) {
    const data = {
        page,
        rows,
        provinceId,
        areaId,
        cityId,
        schoolId,
        orgUserName,
        payUserPhone,
        dateType,
        date
    };
    return fetch({
        url: '/memberShipPackPayDetail/pageMemberShipPackPayDetail',
        method: 'post',
        data
    });
  }
  //统计会员打包订单明细
export function countMemberShipPackPayDetail(provinceId,areaId,cityId,schoolId,orgUserName,payUserPhone,dateType,date) {
    const data = {
        provinceId,
        areaId,
        cityId,
        schoolId,
        orgUserName,
        payUserPhone,
        dateType,
        date
    };
    return fetch({
        url: '/memberShipPackPayDetail/countMemberShipPackPayDetail',
        method: 'post',
        data
    });
  }
  //查看会员打包订单明细详情
export function getMemberShipPackPayDetailById(id) {
    const data = {
        id
    };
    return fetch({
        url: '/memberShipPackPayDetail/getMemberShipPackPayDetailById',
        method: 'post',
        data
    });
  }